home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / LANG / C / LIB / UNIXLIB37B / !UnixLib37 / src / clib / sys / h / file < prev    next >
Text File  |  1996-11-09  |  1KB  |  56 lines

  1. /****************************************************************************
  2.  *
  3.  * $Source: /unixb/home/unixlib/source/unixlib37/src/clib/sys/h/RCS/file,v $
  4.  * $Date: 1996/10/30 21:58:59 $
  5.  * $Revision: 1.2 $
  6.  * $State: Rel $
  7.  * $Author: unixlib $
  8.  *
  9.  * $Log: file,v $
  10.  * Revision 1.2  1996/10/30 21:58:59  unixlib
  11.  * Massive changes made by Nick Burret and Peter Burwood.
  12.  *
  13.  * Revision 1.1  1996/04/19 21:23:56  simon
  14.  * Initial revision
  15.  *
  16.  ***************************************************************************/
  17.  
  18. #ifndef __SYS_FILE_H
  19. #define __SYS_FILE_H 1
  20.  
  21. #ifndef __FCNTL_H
  22. #include <fcntl.h>
  23. #endif
  24.  
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28.  
  29. /* Alternate names for values for the whence argument to lseek.
  30.    These are the same as SEEK_SET, SEEK_CUR and SEEK_END respectively.  */
  31. #define L_SET 0
  32. #define L_INCR 1
  33. #define L_XTND 2
  34.  
  35. /* Operations for the flock call.  */
  36.  
  37. /* Shared lock.  */
  38. #define LOCK_SH 1
  39. /* Exclusive lock.  */
  40. #define LOCK_EX 2
  41. /* Unlock.  */
  42. #define LOCK_UN 8
  43.  
  44. /* Don't block when locking.  */
  45. #define LOCK_NB 4
  46.  
  47. /* Apply or remove an advisory lock, according to operation on the
  48.    file fd refers to.  */
  49. extern int flock (int fd, int operation);
  50.  
  51. #ifdef __cplusplus
  52. }
  53. #endif
  54.  
  55. #endif
  56.